const getDefaultActiveKey = function() {
  return localStorage[`${location.pathname}-TabsDefaultActiveKey`] || 'TableSettting';
};
const setDefaultActiveKey = function(value: string) {
  localStorage[`${location.pathname}-TabsDefaultActiveKey`] = value;
};

const maintableOperateExpandList = {
  TableSettting: {
    key: 'TableSettting',
    name: '表格头设置',
    aliasOperate: '去设置表格头',
    uuid: 'sys_table_set_code',
  },
  QuerySetting: {
    key: 'QuerySetting',
    name: '搜索面板设置',
    aliasOperate: '去设置搜索面板',
    uuid: 'sys_table_set_code',
  },
  FormSetting: {
    key: 'FormSetting',
    name: '表单头设置',
    aliasOperate: '去设置表单',
    uuid: 'sys_table_set_code',
  },
  TableFieldSettting: {
    key: 'TableFieldSettting',
    name: '表格字段设置',
    aliasOperate: '去设置表格字段',
    uuid: 'sys_table_set_code',
    // disabled: true,
  },
  TableAction: {
    key: 'TableAction',
    name: '表格关联动作',
    aliasOperate: '去设置表单字段',
    uuid: 'sys_table_set_action',
    // disabled: true,
  },
  FormFieldSetting: {
    key: 'FormFieldSetting',
    name: '表单字段设置',
    aliasOperate: '去设置表单字段',
    uuid: 'sys_form_set_code',
    // disabled: true,
  },
};

const TabsSetting = {
  // type: "editable-card",
  // type: "card",
  animated: false,
};

export { maintableOperateExpandList, getDefaultActiveKey, setDefaultActiveKey, TabsSetting };
